import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import 'element-plus/dist/index.css';
import { store } from '@/pinia';
import components from '@/components/index';
import directives from '@/directives/index';
import App from './App.vue';
import router from '@/router/index';
import Progress from 'nprogress';
import 'nprogress/nprogress.css';
import 'font-awesome/css/font-awesome.min.css';
import '@/assets/style/base.css';
import '@/assets/style/main.css';

Progress.configure({ showSpinner: false, ease: 'ease', speed: 500 });
Progress.start();

const app = createApp(App);
app.config.productionTip = false;

app
  .use(store)
  .use(router)
  .use(ElementPlus, { locale: zhCn })
  .use(components)
  .use(directives)
  .mount('#app');

export default app;
